package sp.redis;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import sp.util.SpringUtil;
import sp.util.redis.RedisAPI;

public class testRedis {
	
	@Test
	public void testRedisSet(){
		RedisAPI api =(RedisAPI) SpringUtil.getBean("redisAPI");
		api.set("lkg", "nb");
		assertEquals("nb", api.getStringKey("lkg"));
		SpringUtil.close();
	}
}
